projects
/
project
/
bcm63xx
/
atf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f432a
)
imx7: imx7_clock: wdog: Initialize the watchdog clocks
author
Bryan O'Donoghue
<
[email protected]
>
Fri, 27 Jul 2018 13:53:43 +0000
(14:53 +0100)
committer
Bryan O'Donoghue
<
[email protected]
>
Tue, 4 Sep 2018 12:36:23 +0000
(13:36 +0100)
This patch initializes the watchdog clocks for the i.MX7.
Signed-off-by: Bryan O'Donoghue <
[email protected]
>
plat/imx/common/imx7_clock.c
patch
|
blob
|
history
diff --git
a/plat/imx/common/imx7_clock.c
b/plat/imx/common/imx7_clock.c
index ce43a02127d1a262dc7c8771b92a5ee0e2dab9ad..5e8bf2dad128009444300d7e29a19019566003ed 100644
(file)
--- a/
plat/imx/common/imx7_clock.c
+++ b/
plat/imx/common/imx7_clock.c
@@
-14,6
+14,14
@@
static void imx7_clock_uart_init(void)
imx_clock_disable_uart(i);
}
+static void imx7_clock_wdog_init(void)
+{
+ unsigned int i;
+
+ for (i = 0; i < MXC_MAX_WDOG_NUM; i++)
+ imx_clock_disable_wdog(i);
+}
+
void imx_clock_init(void)
{
/*
@@
-30,4
+38,7
@@
void imx_clock_init(void)
/* Initialize UART clocks */
imx7_clock_uart_init();
+
+ /* Watchdog clocks */
+ imx7_clock_wdog_init();
}